package com.wanhe.base.model.disgn;

import com.wanhe.base.util.ObjectUtil;

/**
 * Created by cdj on 2017/7/10.
 */

public class Event {
	/**
	 * cid : 1
	 * args : {"file":6}
	 * event : tap
	 * cop : show
	 * ctype : image
	 * enable : true
	 */

	private int			cid;
	private ArgsBean	args;
	private String		event;
	private String		cop;
	private String		ctype;
	private boolean		enable;
	public int			fromCid;

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public ArgsBean getArgs() {
		if (ObjectUtil.isNull(args)) {
			args = new ArgsBean();
		}
		return args;
	}

	public void setArgs(ArgsBean args) {
		this.args = args;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getCop() {
		return cop;
	}

	public void setCop(String cop) {
		this.cop = cop;
	}

	public String getCtype() {
		return ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public static class ArgsBean {
		/**
		 * file : 6
		 */
		private String	name;
		private int		file;
		private int		snap1;

		/**
		 * 菜品数据
		 * 
		 * @author 陈德基
		 * @time 2017/7/15 15:21
		 */

		private String dishID;

		/**
		 * 自定义数据
		 * 
		 * @author 陈德基
		 * @time 2017/7/29 17:51
		 */
		private String	cus;
		private Object	cusObj;

		public Object getCusObj() {
			return cusObj;
		}

		public void setCusObj(Object cusObj) {
			this.cusObj = cusObj;
		}

		public String getCus() {
			return cus;
		}

		public void setCus(String cus) {
			this.cus = cus;
		}

		public String getDishID() {
			return dishID;
		}

		public void setDishID(String dishID) {
			this.dishID = dishID;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getSnap1() {
			return snap1;
		}

		public void setSnap1(int snap1) {
			this.snap1 = snap1;
		}

		public int getSnap2() {
			return snap2;
		}

		public void setSnap2(int snap2) {
			this.snap2 = snap2;
		}

		private int snap2;

		public int getFile() {
			return file;
		}

		public void setFile(int file) {
			this.file = file;
		}
	}
}
